package com.ihr360.payroll.service.attendanceplan.impl;

import com.ihr360.payroll.dao.WorkHourTemplateRepository;
import com.ihr360.payroll.model.dto.attendance.template.WorkHourTemplate;
import com.ihr360.payroll.service.attendanceplan.WorkHourTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tomtao
 */
@Service
public class WorkHourTemplateServiceImpl implements WorkHourTemplateService {
    @Autowired
    private WorkHourTemplateRepository workHourTemplateRepository;


    @Override
    public List<WorkHourTemplate> getAll() {
        return (List<WorkHourTemplate>) workHourTemplateRepository.findAll();
    }

}
